package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 食材数量变动明细记录对象 restaurant_store_resource_move
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RestaurantStoreResourceMove extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("${comment}")
    private Long id;

    /**
     * 库存表id
     */
    @Excel(name = "库存表id")
    @ApiModelProperty("库存表id")
    private Long resourceId;

    @Excel(name = "园区")
    @ApiModelProperty("园区")
    private String area;

    /**
     * 单据编号
     */
    @Excel(name = "单据编号")
    @ApiModelProperty("单据编号")
    private String businessNum;

    /**
     * 单据类型
     */
    @Excel(name = "单据类型")
    @ApiModelProperty("单据类型")
    private String businessType;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty("数量")
    private BigDecimal amount;

    /**
     * 单位
     */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String unit;

    private String name;
    private String resourceName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setBusinessNum(String businessNum) {
        this.businessNum = businessNum;
    }

    public String getBusinessNum() {
        return businessNum;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "RestaurantStoreResourceMove{" +
                "id=" + id +
                ", resourceId=" + resourceId +
                ", area='" + area + '\'' +
                ", businessNum='" + businessNum + '\'' +
                ", businessType='" + businessType + '\'' +
                ", amount=" + amount +
                ", unit='" + unit + '\'' +
                ", name='" + name + '\'' +
                ", resourceName='" + resourceName + '\'' +
                '}';
    }
}
